﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrafficLab
{
    class Intersection
    {
        // Constant.
        private String Name;
        private int ID;
        private List<RoadSection> incomings = new List<RoadSection>();
        private List<RoadSection> outgoings = new List<RoadSection>();


        public List<RoadSection> GetOutgoings()
        {
            return outgoings;
        }

        public List<RoadSection> GetIncoming()
        {
            return incomings;
        }

        public void SetName(String name)
        {
            this.Name = name;

        }
        public String GetName()
        {
            return this.Name;
        }

        public void SetID( int nID )
        {
            this.ID = nID;
        }

        public int GetID()
        {
            return this.ID;
        }


        public Intersection(String strName, int id)
        {
            SetName(strName);
            SetID(id);
        }

        public Intersection()
        {
 
        }
        

    }
}
